home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_08_10
/
8n10103a
< prev
next >
Wrap
Text File
|
1990-05-06
|
458b
|
10 lines
asm(" push es"); /* save segment register */
asm(" mov ax, 034h"); /* use the Phar Lap Local Descriptor Table (LDT) */
asm(" mov es, ax"); /* segment selector 034h to access real memory */
ebx = addr; /* real memory address desired */
cl = val; /* byte value to poke */
asm(ebx, cl, " mov byte ptr es:[ebx], cl"); /* poke it */
asm(" pop es") /* restore segment register */